#include "base64.h"
#include "string.h"
#include "stdio.h"

int main()
{
    char *p = "hello world";
    int ol;
    char od[1024]; 
    int ol2;
    char od2[1024]; 

    base64_encode(p,strlen(p),od,&ol);
    printf("encode(%d): %s\n",ol,od);

    base64_decode(od,ol,od2,&ol2);
    printf("decode(%d): %s\n",ol2,od2);

    base64_encode_file("./base64.h","./encodefile.txt");

    base64_decode_file("./encodefile.txt","decodefile.txt");

    return 0;
}